﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ModelClassLibrary
{
  public  class Info
    {
        public string text { get; set; }
        public string name { get; set; }
        public string des { get; set; }
        public string dataurl { get; set; }
        public string Contant
        {
            get { return GetFirstChar(text); }
            set { GetFirstChar(text); }

        }
        private string GetFirstChar(string name)
        {
            string Result = ((HanziToPinyin.PinYinConverter.GetFirst(name))[0].ToString()).ToUpper(); ;
            return Result;
        }
    }
}
